package com.itheima.consumer.feign;

import com.itheima.consumer.domain.Goods;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ly
 * @Date: 2021/08/19/15:57
 * @Description:
 */

@Component
public class GoodsFeignClientFallback implements  GoodsFeignClient {


    @Override
    public Goods findGoodsById(int id) {
        Goods goods = new Goods();
        goods.setTitle("我也被降级了");
        return goods;
    }
}
